<a href="<?php echo $_SERVER['REQUEST_URI'] ?>#top">Page top</a>